<script setup lang="ts">
import { useUser } from "@/store/user";
import { storeToRefs } from "pinia";
import { useRouter } from "vue-router";

let user = useUser();
let { defaultRoutes } = storeToRefs(user);
let router = useRouter();
const backFun = () => {
  router.replace("/");
};
</script>
<template>
  <a-result
    title="重复登录"
    status="error"
    subtitle="你已经登录过了此页面对你不开发"
  >
    <template #extra>
      <a-space>
        <a-button type="secondary" @click="backFun">确定</a-button>
        <a-button type="primary" @click="backFun">回退</a-button>
      </a-space>
    </template>
  </a-result>
</template>

<style scoped></style>
